class Room
  attr_accessor :name
  attr_accessor :contents

  def initialize(options = {})
    @name = "Nowhere"
    @contents = []
    options.each do |key,value|
      @name = value if key == :name
    end
  end

  def announce(msg)
    @contents.each do |content|
      $objects[content].tell(msg)
    end
  end
end
